package com.zdp.contentcenter.configuration;

import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.context.annotation.Configuration;
import ribbonconfiguration.RibbonConfiguration;

/**
 * 自定义的ribbon配置类 feign也会使用这个配置的策略
 */
@Configuration
// 细粒度配置采用 @RibbonClient 设置 configuration 为 ribbon的配置类
// @RibbonClient(name = "user-center", configuration = RibbonConfiguration.class)
// 全局配置采用 @RibbonClients 设置 RibbonConfiguration  为 ribbon的配置类
@RibbonClients(defaultConfiguration = NacosSameClusterWeightRule.class)
public class UserCenterConfiguration {
}
